<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isErrorPage="true"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	    <title>出错啦!</title>
	</head>
	<body>
		<div style="padding: 20px;">
			<html:errors/>
			<%-- 如果Struts未存在错误信息，则表示异常发生在JSP页面 --%>
			<logic:messagesNotPresent>
				<bean:message key="errors.header"/>
					<bean:message key="errors.prefix"/><%=exception %><bean:message key="errors.suffix"/>
				<bean:message key="errors.footer"/>
			</logic:messagesNotPresent>
			<div style="padding-top: 20px; color: #000;">
				<a href="login.jsp">Login again please.</a> | <a href="javascript:window.history.back();">Back last page.</a>
			</div>
		</div>
	</body>
</html>